package review;

public class Test
{
    public static void main(String[] args)
    {
        JD jds[] = new JD[4];

        jds[0] = new TV("小米电视",true);
        jds[1] = new Lamp ("LED灯泡",true);
        jds[2] = new Washmachine("美的洗衣机",true);
        jds[3] = new Airmachine("美的空调",true);


        //创建一个控制系统的开关，控制设备开和关
        SmartControl control = new SmartControl();
        control.showAllJD(jds);
        control.contr(jds);
    }

}
